<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Fn(){
		  this.x=100;
		}
		Fn.prototype.getX=function(){
		  return this.x;
		}
		var f1=new Fn();

		Fn.prototype={
		//    constructor:Fn,
		   getY:function(){
		      return this.x
		   }
		};
		var f2=new Fn();

		console.log(f1.getX());//100
		//console.log(f2.getX()); // 报错
		console.log(f1.constructor); //Fn
		console.log(f2.constructor); // Object
    </script>
</body>
</html>